package com.xy.dp.decorator;

public class Program {
    public static void main(String[] args) {
        Car car1 = new CarA1();
        Car car2 = new CarA2();
        Decorator decorator = new Decorator();
        decorator.setCar(car1);
        System.out.println(decorator.getCost());
        System.out.println(decorator.getDesciption());
    }
}
